package com.java2007.pojo;

import java.util.Date;

public class Admin {
    //用户id
    private Integer adminId;
    //用户名
    private String username;
    //用户密码
    private String password;
    //用户状态
    private Integer adminStatus;
    //用户创建时间
    private Date adminCreateTime;
    //用户修改时间
    private Date daminUpdateTime;
    //电话号码
    private String phone;
    //电子邮件
    private String email;
    //用户角色（普通用户/管理员/超级管理员）
    private Integer role;

    @Override
    public String toString() {
        return "Admin{" +
                "adminId=" + adminId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", adminStatus=" + adminStatus +
                ", adminCreateTime=" + adminCreateTime +
                ", daminUpdateTime=" + daminUpdateTime +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", role=" + role +
                '}';
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAdminStatus() {
        return adminStatus;
    }

    public void setAdminStatus(Integer adminStatus) {
        this.adminStatus = adminStatus;
    }

    public Date getAdminCreateTime() {
        return adminCreateTime;
    }

    public void setAdminCreateTime(Date adminCreateTime) {
        this.adminCreateTime = adminCreateTime;
    }

    public Date getDaminUpdateTime() {
        return daminUpdateTime;
    }

    public void setDaminUpdateTime(Date daminUpdateTime) {
        this.daminUpdateTime = daminUpdateTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Admin(Integer adminId, String username, String password, Integer adminStatus, Date adminCreateTime, Date daminUpdateTime, String phone, String email, Integer role) {
        this.adminId = adminId;
        this.username = username;
        this.password = password;
        this.adminStatus = adminStatus;
        this.adminCreateTime = adminCreateTime;
        this.daminUpdateTime = daminUpdateTime;
        this.phone = phone;
        this.email = email;
        this.role = role;
    }

    public Admin() {
    }
}
